package com.quanyan.stadiumScheduler.web;

import com.quanyan.api.APIResponse;
import com.quanyan.stadiumScheduler.service.GameEventService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by lds on 2017/4/18.
 */
@RestController
@RequestMapping("/api/stadiumScheduler/demo")
public class DemoController {

    @Autowired
    private GameEventService gameEventService;

    /**
     *
     *
     */
    @RequestMapping(value="/finishGameEvent", method = RequestMethod.POST)
    public APIResponse finishGameEvent() {
        gameEventService.clubGameEventsSystemCancel();
        return APIResponse.returnSuccess();
    }
}
